﻿namespace GameDesigner
{
    [System.Serializable]
    public class RefIdentity
    {
        public int Value;

        public static implicit operator int(RefIdentity refId)
        {
            return refId.Value;
        }

        public static implicit operator RefIdentity(int id)
        {
            return new RefIdentity() { Value = id };
        }

        public override string ToString()
        {
            return $"{Value}";
        }
    }
}